<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Videos
 *
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Videos onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Query\Builder|\App\Videos withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Videos withoutTrashed()
 * @mixin \Eloquent
 * @property int $id
 * @property int $file_id 完整视频id
 * @property string|null $video_name 视频名
 * @property string|null $video_type 视频类型
 * @property string|null $key 视频key
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereFileId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereKey($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereVideoName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Videos whereVideoType($value)
 * @property-read \App\Files $file
 */
class Videos extends Model
{
    protected $table="videos";
    use SoftDeletes;

    public function file(){
        return $this->belongsTo('App\Files','file_id');
    }
}